package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.mapper.JobTypeMapper;
import com.ygs.secs.model.JobType;
import com.ygs.secs.service.JobTypeService;

@Service
public class JobTypeServiceImpl implements JobTypeService {

    @Resource
    private JobTypeMapper jobTypeMapper;

    @Override
    public int deleteByPrimaryKey(Integer typeid) {
        return jobTypeMapper.deleteByPrimaryKey(typeid);
    }

    @Override
    public int insert(JobType record) {
        return jobTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(JobType record) {
        return jobTypeMapper.insertSelective(record);
    }

    @Override
    public JobType selectByPrimaryKey(Integer typeid) {
        return jobTypeMapper.selectByPrimaryKey(typeid);
    }

    @Override
    public int updateByPrimaryKeySelective(JobType record) {
        return jobTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(JobType record) {
        return jobTypeMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<JobType> list) {
        return jobTypeMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<JobType> list) {
        return jobTypeMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<JobType> list) {
        return jobTypeMapper.batchInsert(list);
    }

    @Override
    public List<JobType> getAlljobType() {
        return jobTypeMapper.getAlljobType();
    }

    @Override
    public int batchdel(Integer[] list) {
        return jobTypeMapper.batchdel(list);
    }
}
